package com.join;

class SortThread extends Thread{
	int[] array;
	public SortThread(int[] array) {
		this.array=array;
	}
	@Override
	public void run() {
		for (int i = 0; i < array.length; i++) {
			
			for (int j = i; j < array.length; j++) {
				if(array[i]>array[j]){
					int temp=array[i];
					array[i]=array[j];
					array[j]=temp;
				}
			}
		}
		System.out.println("排序完成！！！");
	}
	
}